<?php
namespace Modules\Home\Services;

use Common\Models\UserWalletActivationCodeLogModel;

class UserWalletActivationCodeLogService {
  public function create($parameter) {
    $userWalletActivationCodeLogModel = new UserWalletActivationCodeLogModel($parameter);

    if(!$userWalletActivationCodeLogModel -> save()) {
      $messages = $userWalletActivationCodeLogModel -> getMessages();
      return ['code' => -1, 'message' => $messages[0] -> getMessage()];
    }

    return ['code' => 0, 'user_wallet_activation_code_log' => $userWalletActivationCodeLogModel];
  }
}
?>